<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>browserrange (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">dom.browserrange</span>
</div>

<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_goog_dom_browserrange_AbstractRange.html">
          goog.dom.browserrange.AbstractRange</a><br/>
        <div class="class-details">The constructor for abstract ranges.  Don't call this from subclasses.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_dom_browserrange_GeckoRange.html">
          goog.dom.browserrange.GeckoRange</a><br/>
        <div class="class-details">The constructor for Gecko specific browser ranges.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_dom_browserrange_IeRange.html">
          goog.dom.browserrange.IeRange</a><br/>
        <div class="class-details">The constructor for IE specific browser ranges.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_dom_browserrange_OperaRange.html">
          goog.dom.browserrange.OperaRange</a><br/>
        <div class="class-details">The constructor for Opera specific browser ranges.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_dom_browserrange_W3cRange.html">
          goog.dom.browserrange.W3cRange</a><br/>
        <div class="class-details">The constructor for W3C specific browser ranges.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_dom_browserrange_WebKitRange.html">
          goog.dom.browserrange.WebKitRange</a><br/>
        <div class="class-details">The constructor for WebKit specific browser ranges.
</div>
 </div>
   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>



<h2>Enumerations</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.dom.browserrange.Error"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.dom.browserrange.</span><span class="entryName">Error</span>
        : 
     </div>


     <div class="entryOverview">
       Common error constants.

     </div>

     <div class="entryDetails">
       <div class="detailsSection">
          <b>Constants:</b>
          <table class="horiz-rule">
            <tbody>
              <tr><td>
                <span class="entryName">
                  NOT_IMPLEMENTED
                </span>
                <div class="entryOverview">
                  <span class='nodesc'>No description.</span>
                </div>
             </td></tr>
           </tbody>
         </table>
       </div>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_browserrange_browserrange.js.source.html#line44">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.dom.browserrange.canContainRangeEndpoint"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.dom.browserrange.</span><span class="entryName">canContainRangeEndpoint<span class="args">(<span class="arg">node</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Tests whether the given node can contain a range end point.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">node</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/DOM/Node">Node</a></span>
        <div class="entryOverview">The node to check.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the given node can contain a range end point.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_browserrange_browserrange.js.source.html#line141">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.dom.browserrange.createRange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.dom.browserrange.</span><span class="entryName">createRange<span class="args">(<span class="arg">range</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_dom_browserrange_AbstractRange.html">goog.dom.browserrange.AbstractRange</a></span>
      </div>


     <div class="entryOverview">
       Static method that returns the proper type of browser range.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">range</span>
        : <span class="type">Range</span><span>&nbsp;|&nbsp;</span><span class="type">TextRange</span>
        <div class="entryOverview">A browser range object.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_dom_browserrange_AbstractRange.html">goog.dom.browserrange.AbstractRange</a></span>&nbsp;
            A wrapper object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_browserrange_browserrange.js.source.html#line59">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.dom.browserrange.createRangeFromNodeContents"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.dom.browserrange.</span><span class="entryName">createRangeFromNodeContents<span class="args">(<span class="arg">node</span>)</span>
        </span>
        &#8658; <span class="type"><a href="class_goog_dom_browserrange_AbstractRange.html">goog.dom.browserrange.AbstractRange</a></span>
      </div>


     <div class="entryOverview">
       Static method that returns the proper type of browser range.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">node</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/DOM/Node">Node</a></span>
        <div class="entryOverview">The node to select.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="class_goog_dom_browserrange_AbstractRange.html">goog.dom.browserrange.AbstractRange</a></span>&nbsp;
            A wrapper object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_browserrange_browserrange.js.source.html#line86">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.dom.browserrange.createRangeFromNodes"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.dom.browserrange.</span><span class="entryName">createRangeFromNodes<span class="args">(<span class="arg">startNode</span>,&nbsp;<span class="arg">startOffset</span>,&nbsp;<span class="arg">endNode</span>,&nbsp;<span class="arg">endOffset</span>)</span>
        </span>
        &#8658; <span class="type"><a href="class_goog_dom_browserrange_AbstractRange.html">goog.dom.browserrange.AbstractRange</a></span>
      </div>


     <div class="entryOverview">
       Static method that returns the proper type of browser range.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">startNode</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/DOM/Node">Node</a></span>
        <div class="entryOverview">The node to start with.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">startOffset</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The offset within the node to start.  This is
    either the index into the childNodes array for element startNodes or
    the index into the character array for text startNodes.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">endNode</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/DOM/Node">Node</a></span>
        <div class="entryOverview">The node to end with.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">endOffset</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The offset within the node to end.  This is
    either the index into the childNodes array for element endNodes or
    the index into the character array for text endNodes.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="class_goog_dom_browserrange_AbstractRange.html">goog.dom.browserrange.AbstractRange</a></span>&nbsp;
            A wrapper object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_browserrange_browserrange.js.source.html#line114">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package dom</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="dom.browserrange"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
